<!-- 首页 -->
<template>
  <div class="main-container">
    <list-row :zpDataFlag="true" @changeFun="changeFun">
      <template #title>
        <span style="font-weight: 700">科目总览</span>
      </template>
      <template #extra>
        <!-- <a-button
          type="primary"
          v-if="route.meta?.buttonList?.includes('PositiveImport')"
          :disabled="!Data.pageAccountCodeKmdm"
          class="mr-8px"
        >
          导出当前科目Excel
        </a-button>
        <a-button type="primary" v-if="userInfo.accountType == 'ADMIN'">导出全部Excel</a-button> -->
      </template>
    </list-row>
  </div>
</template>

<script lang="ts" setup>
import { reactive, computed } from 'vue'
import listRow from '/@/views/home/index/components/listRow.vue'
import { useUserStore } from '/@/store/modules/user'
import { useRoute } from 'vue-router'
const route = useRoute()

const userStore = useUserStore()
const userInfo = computed<any>(() => userStore.getUserInfo)

const Data = reactive({
  pageAccountCodeKmdm: '', // 科目代码
})

async function changeFun(kmdm: any) {
  Data.pageAccountCodeKmdm = kmdm
}
</script>

<style lang="less" scoped>
.main-container {
  display: flex;
  flex-direction: column;

  :global(.ant-pagination) {
    margin-top: 20px;
  }
}
</style>
